package com.tonny.bootdemo.service.impl;

import com.tonny.bootdemo.dao.UserDao;
import com.tonny.bootdemo.domain.User;
import com.tonny.bootdemo.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author <a href=mailto:yikaitang@meituan.com>伊开堂</a>
 * @date 2018/2/7 12:16
 */
@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserDao userDao;

    @Override
    public User findUser(Long id) {
        return userDao.selectByPrimaryKey(id);
    }
}
